package com.auditlog.datasource.context;

import lombok.Data;


/**
 * @author Zhiyang.Zhang
 * @version 1.0
 * @date 2022/11/29 11:13
 */
@Data
public class CommonField {
    /**
     * 记录日志查询过程中的错误
     */
    protected boolean isError;

    protected Throwable cause;

    protected Throwable targetCause;

    protected boolean isTargetError;

    protected void reset() {
        this.isError = false;
        this.cause = null;
    }
}
